package com.gmq.chapter02.synLockIn_1;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by gmq on 2017/08/22.
 *
 * @version 1.0
 * @since 2017/08/22 16:58
 */
public class Service {

    synchronized public void service1() {
        System.out.println("service1");
        service2();
    }

    synchronized public void service2() {
        System.out.println("service2");
        service3();
    }

    synchronized public void service3() {
        System.out.println("service3");
    }
}

